package com.ruoyi.petSys.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 帖子对象 invitation
 * 
 * @author ruoyi
 * @date 2024-03-21
 */
public class Invitation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 发布帖子用户id */
    @Excel(name = "发布帖子用户id")
    private Long promUserId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    /** 图片url，通过；相隔。最多三个 */
    @Excel(name = "图片url，通过；相隔。最多三个")
    private String imgUrl;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Integer upvoteNum;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Integer browseNum;

    /** 宠物类型，绑定宠物类型表 */
    @Excel(name = "宠物类型，绑定宠物类型表")
    private Long petType;

    /** 审核状态（1为是，0为否 */
    @Excel(name = "审核状态", readConverterExp = "审核状态（1为是，0为否")
    private Long checkType;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkTime;

    /** 审核用户id */
    @Excel(name = "审核用户id")
    private Long checkUserId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setPromUserId(Long promUserId) 
    {
        this.promUserId = promUserId;
    }

    public Long getPromUserId() 
    {
        return promUserId;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }
    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }
    public void setUpvoteNum(Integer upvoteNum) 
    {
        this.upvoteNum = upvoteNum;
    }

    public Integer getUpvoteNum() 
    {
        return upvoteNum;
    }
    public void setBrowseNum(Integer browseNum) 
    {
        this.browseNum = browseNum;
    }

    public Integer getBrowseNum() 
    {
        return browseNum;
    }
    public void setPetType(Long petType) 
    {
        this.petType = petType;
    }

    public Long getPetType() 
    {
        return petType;
    }
    public void setCheckType(Long checkType) 
    {
        this.checkType = checkType;
    }

    public Long getCheckType() 
    {
        return checkType;
    }
    public void setCheckTime(Date checkTime) 
    {
        this.checkTime = checkTime;
    }

    public Date getCheckTime() 
    {
        return checkTime;
    }
    public void setCheckUserId(Long checkUserId) 
    {
        this.checkUserId = checkUserId;
    }

    public Long getCheckUserId() 
    {
        return checkUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("promUserId", getPromUserId())
            .append("creatTime", getCreatTime())
            .append("updateTime", getUpdateTime())
            .append("imgUrl", getImgUrl())
            .append("upvoteNum", getUpvoteNum())
            .append("browseNum", getBrowseNum())
            .append("petType", getPetType())
            .append("checkType", getCheckType())
            .append("checkTime", getCheckTime())
            .append("checkUserId", getCheckUserId())
            .toString();
    }
}
